package com.sleepapp.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import com.sleepapp.vo.CheckInRecordVo;

import java.util.List;

/**
 * @author ziluxike
 * @since 2025/5/26 15:27
 */
@Data
public class DashboardData {
    @ApiModelProperty("本月成功天数")
    private MonthlyStats monthlyStats;

    @ApiModelProperty("累计早睡天数")
    private TotalStats totalStats;

    @ApiModelProperty("打卡记录数据")
    private List<CheckInRecordVo> checkInRecords;


    @Data
    @AllArgsConstructor
    public static class MonthlyStats {
        @ApiModelProperty("本月成功天数")
        private Long successDays;

        @ApiModelProperty("本月成功进度")
        private Long successRate;
    }

    @Data
    @AllArgsConstructor
    public static class TotalStats {
        @ApiModelProperty("累计早睡天数")
        private Long successDays;

        @ApiModelProperty("可用积分")
        private Integer availablePoints;
    }
}
